package com.example.oauth2demo.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

/**
 * description: RedisConfig <br>
 * date: 2021/5/22 15:06 <br>
 * author: xiehui <br>
 * version: 1.0 <br>
 */
@Configuration
public class RedisConfig {

    @Autowired
    RedisConnectionFactory redisConnectionFactory;

    /*
    在JwtTokenStoreConfig定义了TokenStore，此处先注释
    @Bean
    public TokenStore redisTokenStore() {
        return new RedisTokenStore(redisConnectionFactory);
    }
    */
}
